<template>
  <div>
    <div class="panel_wrap">
      <div class="panel_wrap-inner">
        <div class="panel_wrap-title islink">
          <p>富国高新技术产业混合</p>
          <span class="indicate">10060</span>
          <span class="tip">基智投</span>
        </div>
        <div class="panel_wrap-info">
          <div class="card-wrap">
            <div class="card-top">
              <div class="card-th">
                <span>定投资产（元）</span>
                <span>累计定投收益（元）</span>
                <span>定投收益率</span>
              </div>
              <div class="card-td">
                <span>33,456.00</span>
                <span>3,456.00</span>
                <span>+10.00%</span>
              </div>
            </div>
            <div class="card-middle">
              <div class="middle-row">
                <div><span class="label">已投期数</span> <span> 10</span></div>
                <div>
                  <span class="label">累计定投份额</span>
                  <span> 100,00.65</span>
                </div>
              </div>
              <div class="middle-row">
                <div>
                  <span class="label">累计定投（元）</span>
                  <span> 22,200.33</span>
                </div>
              </div>
              <div class="custom-line"></div>
            </div>
            <div class="card-footer">
              <span>下次扣款日期：</span>
              <span class="date">2020-11-01</span>
              <van-icon name="question-o" />
            </div>
          </div>
          <div class="period-wrap v-1px-b">
            <div class="period-left">定投周期及金额</div>
            <div class="period-right">定投周期及金额</div>
          </div>
          <div class="account-wrap v-1px-b">
            <div class="account-left">资金账号</div>
            <div class="account-right">
              <div class="account-number">109928901</div>
              <div class="account-residue">可用：888,888.88元</div>
            </div>
          </div>
          <div class="account-wrap">
            <div class="account-left">定投策略</div>
            <div class="account-right">
              <div class="account-number">指数均线定投策略</div>
              <div class="account-residue">沪深300指数，250日均线</div>
            </div>
          </div>
          <div class="list-wrap">
            <ul class="list-ul">
              <li>
                <div class="list-name">定投目标收益</div>
                <div class="list-value">20%</div>
              </li>
              <li>
                <div class="list-name">止盈锁定期</div>
                <div class="list-value">6个月</div>
              </li>
              <li>
                <div class="list-name">止盈后是否自动开启下轮定投</div>
                <div class="list-value">是</div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="panel_wrap">
      <div class="panel_wrap-inner">
        <div class="panel_wrap-title">
          <p>定投收益率</p>
        </div>
        <div class="panel_wrap-info">
          <div class="earnings-chart"></div>
        </div>
      </div>
    </div>
    <div class="panel_wrap">
      <div class="panel_wrap-inner">
        <div class="panel_wrap-title">
          <p>定投记录</p>
        </div>
        <div class="panel_wrap-info">
          <div class="recoders-wrap">
            <ul>
              <li class="recoder-item v-1px-b">
                <span>2020-01-01</span>
                <span>500,00.00元</span>
                <span class="state">定投成功</span>
              </li>
              <li class="recoder-item v-1px-b">
                <span>2020-01-01</span>
                <span>500,00.00元</span>
                <span class="state">定投成功</span>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="panel_wrap">
      <div class="footer">
        <div>修改</div>
        <div>终止</div>
      </div>
    </div>
  </div>
</template>

<script>
import { Icon, Picker, Popup } from "vant";
export default {
  name: "strategy-detail",
  components: {
    [Icon.name]: Icon,
    [Picker.name]: Picker,
    [Popup.name]: Popup,
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="less" scoped>
.panel_wrap {
  .panel_wrap-inner {
    .panel_wrap-title {
      font-size: 15px;
      font-weight: bold;
      padding: 15px 0;
      display: flex;
      justify-content: flex-start;
      .indicate {
        font-size: 13px;
        color: #999999;
        margin: 0 5px;
      }
      .tip {
        font-size: 11px;
        color: #1f6aff;
        background: #f1f6ff;
        border-radius: 1px;
      }
    }
    .panel_wrap-info {
      font-size: 15px;
      color: #333;
      .strategy-discribe {
        font-size: 13px;
        color: #999999;
        letter-spacing: 0;
        line-height: 20px;
      }
      .chart-wrap {
        height: 156px;
        padding: 16px 0;
      }
    }
  }
}
.card-wrap {
  background-image: linear-gradient(90deg, #3861fe 0%, #489bfe 100%);
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  .card-top {
    padding: 15px;
    .card-th {
      display: flex;
      justify-content: space-between;
    }
    .card-td {
      display: flex;
      justify-content: space-between;
      font-size: 24px;
    }
  }
  .card-middle {
    padding: 15px 15px 0;
    .middle-row {
      display: flex;
      justify-content: space-between;
      .label {
        margin-right: 10px;
      }
    }
    .custom-line {
      margin: 10px 0;
      .rem1pxB(#fff);
    }
  }
  .card-footer {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    .date {
      margin: 0 4px;
    }
  }
}
.period-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #333333;
  height: 44px;
}
.account-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
  font-size: 15px;
  color: #333333;
  .account-number {
    text-align: right;
  }
  .account-residue {
    text-align: right;
    font-size: 13px;
    color: #999999;
  }
}
.list-wrap {
  padding-bottom: 15px;
  .list-ul {
    background: #f8faff;
    border-radius: 4px;
    font-size: 13px;
    color: #999999;
    padding: 8px 15px;
    li {
      line-height: 1.5;
      list-style: circle inside;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
}
.earnings-chart {
  height: 221px;
}
.recoders-wrap {
  .recoder-item {
    font-size: 13px;
    color: #999999;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .state {
      color: #333;
    }
  }
}
.footer {
  font-size: 18px;
  color: #1f6aff;
  display: flex;
  div {
    height: 50px;
    line-height: 50px;
    text-align: center;
    flex: 1;
    background: #fff;
  }
  div:first-child {
    margin-right: 2px; /*no*/
  }
}
</style>